﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Data.Entity;
namespace B2BPro.Models
{
    public class B2BProEntities : DbContext
    {
        public DbSet<Account> Accounts { get; set; }
        public Account getAcountByID(int id)
        {
            return this.Accounts.FirstOrDefault(acc => acc.ID == id); 
        }
    }
}